package model;

import javax.swing.ImageIcon;

/**
 *
 * @author Jeppe
 */
public class Produkt {
    private  int id;
    private final String titel;
    private final int pris;
    private ImageIcon imgIcon;
    private final String beskrivelse;
    private final int rating;

    public Produkt(int id, String titel, int pris, ImageIcon imgIcon, String beskrivelse, int rating) {
        this.id = id;
        this.titel = titel;
        this.pris = pris;
        this.imgIcon = imgIcon;
        this.beskrivelse = beskrivelse;
        this.rating = rating;
    }

    public Produkt(String titel, int pris, ImageIcon imgIcon, String beskrivelse, int rating) {
        this.titel = titel;
        this.pris = pris;
        this.imgIcon = imgIcon;
        this.beskrivelse = beskrivelse;
        this.rating = rating;
    }
    

    public int getId() {
        return id;
    }
    
    public String getTitel() {
        return titel;
    }

    public int getPris() {
        return pris;
    }

    public ImageIcon getImgIcon() {
        return imgIcon;
    }

    public String getBeskrivelse() {
        return beskrivelse;
    }

    public int getRating() {
        return rating;
    }    

    public void setImgIcon(ImageIcon imgIcon) {
        this.imgIcon = imgIcon;
    }
    
    @Override
    public String toString(){
        return titel;
    }
    
    
    
    
    
}
